package com.ruoyi.web.Server.BT;

import com.ruoyi.web.controller.common.Constants;
import com.ruoyi.web.controller.common.Constants;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * 系统配置
 *
 * @author Jrx
 */
@Service
@Slf4j
@RequiredArgsConstructor
public class TrackerURLService {

    /**
     * 获取当前的tracker Announce 地址
     */
    public String getAnnounce(String passkey) {

            String hostname = "team4.10813352.xyz";

            String string = Constants.Announce.PROTOCOL + "://" + hostname + ":" + Constants.Announce.PORT + "/tracker/announce?passkey=" + passkey;

            return string;

    }
}

